package com.ziyucoding.springboot.labs.mybatis.mapper;

import com.ziyucoding.springboot.labs.mybatis.dataobject.UserInfoDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

/**
 * 用户 Mapper
 */
@Repository
public interface UserInfoMapper {

    int insert(UserInfoDO item);

    int updateById(UserInfoDO item);

    int deleteById(@Param("id") Integer id);

    UserInfoDO selectById(@Param("id") Integer id);

    UserInfoDO selectByUserName(@Param("userName") String userName);

    List<UserInfoDO> selectByIds(@Param("ids") Collection<Integer> ids);

}
